package com.xbongbong.pro.appdetail.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 移动端详情基础信息右上角显示的内容
 *
 * @author GuoJun.HU
 * @date 2019/3/13 10:45
 * @since V1.0
 */
@ToString
@Setter
@Getter
public class MobileDetailScriptPojo {

    /**
     * 显示类型
     * 目前有两种类型：money(金额) time(时间) num(数量)status(状态)
     */
    private String type;
    /**
     * 显示的内容
     */
    private Object value;

    public void setMoneyScript(Object value) {
        this.type = "money";
        this.value = value;
    }

    public void setTimeScript(Object value) {
        this.type = "time";
        this.value = value;
    }

    public void setNumScript(Object value) {
        this.type = "num";
        this.value = value;
    }

    public void setStatusScript(Object value) {
        this.type = "status";
        this.value = value;
    }

    public void setVideoScript(Object value) {
        this.type = "video";
        this.value = value;
    }

    public void setFileScript(Object value) {
        this.type = "file";
        this.value = value;
    }
}
